package com.ayf.payment.game.api.service.platform.impl;

import com.ayf.payment.game.api.dto.platform.PaymentBusinessDTO;
import com.ayf.payment.game.api.mapper.platform.PaymentBusinessMapper;
import com.ayf.payment.game.api.service.platform.PaymentBusinessService;
import com.swwx.charm.commons.lang.utils.BeanConvertUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PaymentBusinessServiceImpl implements PaymentBusinessService {

    @Resource
    private PaymentBusinessMapper paymentBusinessMapper;

    @Override
    public List<PaymentBusinessDTO> getAllPaymentBusiness() {
        return BeanConvertUtils.convert(paymentBusinessMapper.selectAll(), PaymentBusinessDTO.class);
    }
}
